package com.thinkcube.edutainment.service.viewitem;

import org.androidannotations.annotations.EViewGroup;
import org.androidannotations.annotations.ViewById;

import android.content.Context;
import android.util.AttributeSet;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.thinkcube.edutainment.R;
import com.thinkcube.edutainment.domain.data.MessageData;
@EViewGroup(R.layout.notification_item)
public class NotificationItem extends RelativeLayout{
	
	@ViewById(R.id.nodification_text)
	TextView notification;
	@ViewById(R.id.day_cnt)
	TextView dayCnt;
	

	public NotificationItem(Context context) {
		super(context);
		
	}
	
	public NotificationItem(final Context context, final AttributeSet attrs)
	{
		super(context, attrs);
		
	}
	
	public void bind(final MessageData notificationdata) {
		notification.setText(notificationdata.getMessage());
		dayCnt.setText(notificationdata.getCreatedDate());

	}

}
